<template>
  <view class="web">
    <!-- 安卓端不支持web-view方式加载PDF文件链接 -->
    <web-view :src="url" />
  </view>
</template>

<script setup>
import { ref } from 'vue';
const url = ref('');

onLoad((options) => {
  console.log('接收参数', options.title, options.url);
  url.value = options.url;
  uni.setNavigationBarTitle({
    title: options.title
  });
});
</script>

<style></style>
